package com.ktjy.service.impl;

import com.ktjy.entity.StorageRecord;
import com.ktjy.mapper.StorageRecordMapper;
import com.ktjy.service.StorageRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version v1.0
 * @Author JieGe
 * @Create 2024-12-10 - 11:07
 */
@Service("storageRecordService")
public class StorageRecordServiceImpl implements StorageRecordService {

    @Autowired // 注入mapp层的依赖对象
    private StorageRecordMapper storageRecordMapper;

    @Override
    public int insert(StorageRecord record) {
        return storageRecordMapper.insert(record);
    }

    @Override
    public int delete(int id) {
        return storageRecordMapper.delete(id);
    }

    @Override
    public int update(StorageRecord record) {
        return storageRecordMapper.update(record);
    }
}
